package com.lizemin.mybatis.annotation;

import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author lzm
 * @date 2025/5/18 21:27
 * @description 启用Mybatis
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(PowerMybatisMapperScan.class)
public @interface EnableMybatis {

    /**
     * 指定要扫描的包
     *
     * @return 要扫描的包
     */
    String[] basePackages() default "";

}
